Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Master] Patch missing type shapes #16154

Merged
merged 30 commits into from
Oct 28, 2024

Conversation

dkijania
Copy link
Member

When there is a missing reference file we can checkout missing commit , dump type shape and continue compairsion

@dkijania dkijania self-assigned this Sep 29, 2024
@dkijania
Copy link
Member Author

!ci-build-me

@dkijania dkijania changed the title Patch missing type shapes [Master] Patch missing type shapes Sep 29, 2024
@dkijania dkijania marked this pull request as ready for review September 29, 2024 20:48
@dkijania dkijania requested review from a team as code owners September 29, 2024 20:48
{ image : Text
, extraEnv : List Text
, privileged : Bool
, useBash : Bool
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to be unused in this PR, and generally orthogonal to the changes. Can you remove this?

# RunInToolchain.runInToolchain
([] : List Text)
"buildkite/scripts/version-linter.sh ${release_branch}"
, label = "Versioned type linter for ${release_branch}"
, key = "version-linter-${release_branch}"
, soft_fail = Some soft_fail
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why move this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issues with merging. Removing

let Docker = ../../Command/Docker/Type.dhall

let Size = ../../Command/Size.dhall

let RunInToolchain = ../../Command/RunInToolchain.dhall
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why move this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

dkijania commented Oct 2, 2024

!ci-build-me

@dkijania
Copy link
Member Author

dkijania commented Oct 3, 2024

!ci-build-me

@dkijania
Copy link
Member Author

dkijania commented Oct 4, 2024

!ci-build-me

@@ -20,3 +20,5 @@ export TYPE_SHAPE_FILE=${MINA_COMMIT_SHA1}-type_shape.txt

echo "--- Create type shapes git note for commit: ${MINA_COMMIT_SHA1}"
mina internal dump-type-shapes > ${TYPE_SHAPE_FILE}

source buildkite/scripts/gsutil-upload.sh ${TYPE_SHAPE_FILE} gs://mina-type-shapes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this now necessary?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We did an effort recently to setup agents in a way that now env vars which allows to correctly setup gsutil are passed to toolchain and allow us to upload file to gs directly from toolchain. Previously we had to ran gsutil directly from agent which was a bit of dance (dumping file on toolchains, then uploading on agents level).

In VersionLinter.dhall i removed line with upload to gcloud bucket

@dkijania
Copy link
Member Author

!ci-build-me

'''
return requests.head(url).status_code == 200

def find_latest_type_shape_ref_on(branch):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is redundant now that latest_branch_commit only returns 1 commit. Recommend deleting this and the helper functions

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@dkijania
Copy link
Member Author

!ci-build-me

@mrmr1993
Copy link
Member

!approved-for-mainnet

@mrmr1993 mrmr1993 merged commit 0164756 into master Oct 28, 2024
42 of 43 checks passed
@mrmr1993 mrmr1993 deleted the dkijania/generate_version_lint_inafly_master branch October 28, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants